package work.timejay.shop.service.sys.impl;


import org.springframework.stereotype.Service;
import work.timejay.common.SuperServiceImpl;
import work.timejay.shop.entity.sys.SysRoleMenu;
import work.timejay.shop.mapper.sys.SysRoleMenuMapper;
import work.timejay.shop.service.sys.SysRoleMenuService;

import java.util.List;

/**
 * <p>
 * 角色和菜单关联表 服务实现类
 * </p>
 *
 * @author 王文杰
 * @since 2024-02-07
 */
@Service
public class SysRoleMenuServiceImpl extends SuperServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements SysRoleMenuService {

    @Override
    public List<SysRoleMenu> findInfoByRoleId(Long roleId) {
       return lambdaQuery()
                .eq(SysRoleMenu::getRoleId,roleId)
                .list();
    }
}
